using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect15-给目标恢复几点血量", menuName = "Skill/Effect/Effect15-给目标恢复几点血量", order = 15)]
public class Effect15 : EffectBase
{
    public int healCount;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if (targets == null || targets.Count == 0)
        {
            return;
        }

        foreach (var target in targets)
        {
            target.HealOriginHp(healCount);
        }
    }
}